<template>
	<view class="center">
		<view class="logo"  :hover-class="!login ? 'logo-hover' : ''">
			<image class="logo-img" :src="login ? uerInfo.avatarUrl :avatarUrl"></image>
			<view class="logo-title">
				<view class="logo-name">wx_咖啡</view>
				<view class="logo-phone">13101010131</view>
				<!-- <text class="uer-name">Hi，{{login ? uerInfo.name : '您未登录'}}</text> -->
			</view>
			<text class="go-login  "><text class="alifont">&#xe6a2;</text></text>
		</view>
		
		<view class="balance-wrapper">
			<view class="balance-left">
				<view class="balance-left-value">3.46元</view>
				
				<view>账号余额</view>
			</view>
			<view class="balance-right">
				<view class="balance-right-value">0</view>
				
				<view>消费积分</view>
			</view>
		</view>
		
		<view class="center-list">
			<view class="center-list-item border-bottom">
				<text class="list-icon">&#xe601;</text>
				<text class="list-text">我的优惠卡卷</text>
				<text class="">&#xe65e;</text>
			</view>
			<view class="center-list-item">
				<text class="list-icon" style="color: #ee5f5f;">&#xe60a;</text>
				<text class="list-text">消费订单</text>
				<text class="">&#xe65e;</text>
			</view>
		</view>
		<view class="center-list">
			<view class="center-list-item border-bottom">
				<text class="list-icon">&#xe60b;</text>
				<text class="list-text">设备报修和投诉</text>
				<text class="">&#xe65e;</text>
			</view>
			<view class="center-list-item">
				<text class="list-icon" style="color: #ffc107;">&#xe603;</text>
				<text class="list-text">关于 帮助</text>
				<text class="">&#xe65e;</text>
			</view>
		</view>
		<view class="center-list">
			<view class="center-list-item border-bottom" >
				<text class="list-icon">&#xe609;</text>
				<text class="list-text">维护首页</text>
				<text class="">&#xe65e;</text>
			</view>
			<view class="center-list-item">
				<text class="list-icon" style="color: #ffc107;">&#xe602;</text>
				<text class="list-text">财务首页</text>
				<text class="">&#xe65e;</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				login:false,
				avatarUrl:"../../static/logo.png",
				uerInfo:{}
			}
		},
		methods: {
			goLogin() {
				if(!this.login){
					uni.navigateTo({
						url:"../login/login"
					})
				}
			},
			goAbout() {
				// #ifdef APP-PLUS
				uni.navigateTo({
					url:'/platforms/app-plus/about/about'
				});
				// #endif
				// #ifdef H5
				uni.navigateTo({
					url:'/platforms/h5/about/about'
				});
				// #endif
			}
		}
	}
</script>

<style scoped>
	page,
	view {
	    display: flex;
	}
	
	page {
	    display: flex;
	    min-height: 100%;
	    background-color: #EFEFEF;
	}
	
	template {
	    display: flex;
	    flex: 1;
	}
	/* 个人中心 */
	
	.center {
		flex-direction: column;
	    min-height: 100vh;
	}
	
	.logo {
		width: 750rpx;
		height: 140upx;
		padding: 20upx;
		box-sizing: border-box;
		background: #03a9f4 ;
		flex-direction: row;
		align-items: center;
	}
	
	.logo-hover {
		opacity: 0.8;
	}
	
	.logo-img {
		width: 93.75rpx;
		height: 93.75rpx;
		border-radius: 150upx;
	}
	
	.logo-title {
		height: 150upx;
		flex: 1;
		align-items: flex-start;
		justify-content: center;
		flex-direction: column;
		margin-left: 20upx;
	}
	
	.uer-name {
		height: 60upx;
		line-height: 60upx;
		font-size: 38upx;
		color: #FFFFFF;
	}
	
	.go-login. {
		font-size: 38upx;
		color: #DDDDDD;
	}
	
	.login-title {
		height: 150upx;
		align-items: self-start;
		justify-content: center;
		flex-direction: column;
		margin-left: 20upx;
	}
	
	.center-list {
		background-color: #FFFFFF;
		margin-top: 20upx;
		width: 750upx;
		flex-direction: column;
	}
	
	.center-list-item {
		height: 90upx;
		width: 750upx;
		box-sizing: border-box;
		flex-direction: row;
		padding: 0upx 20upx;
	}
	
	.border-bottom {
		border-bottom-width: 1upx;
		border-color: #DDDDDD;
		border-bottom-style: solid;
	}
	
	.list-icon {
		width: 40upx;
		height: 90upx;
		line-height: 90upx;
		font-size: 34upx;
		color: #48a8ee;
		text-align: center;
		margin-right: 20upx;
	}
	
	.list-text {
		height: 90upx;
		line-height: 90upx;
		font-size: 34upx;
		color: #555;
		flex: 1;
		text-align: left;
	}
	
	.logo-name{
		font-size: 0.9rem;
		color: #FFFFFF;
	}
	
	.logo-phone{
		font-size: 0.7rem;
		color: #FFFFFF;
	}
	
	.balance-wrapper{
		display: flex;
		flex-direction: row;
	}
	
	.balance-left{
		padding: 0.75rem 0;
		display: flex;
		flex-direction: column;
		width: 50%;
		justify-content: space-between;
		align-items: center;
		background-color: #FFFFFF;
		border-right: #DDDDDD solid .1px;
	}
	
	.balance-right{
		padding: 0.75rem 0;
		display: flex;
		flex-direction: column;
		width: 50%;
		justify-content: space-between;
		align-items: center;
		background-color: #FFFFFF;
	}
	
	.balance-left-value{
		color: #ffc107 ;
		font-size: 1.15rem;
	}
	
	.balance-right-value{
		color: #009688 ;
		font-size: 1.15rem;
	}
</style>